package com.ruoyi.im.service.impl;

import com.ruoyi.common.support.Convert;
import com.ruoyi.im.domain.GroupDetail;
import com.ruoyi.im.mapper.GroupDetailMapper;
import com.ruoyi.im.service.IGroupDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 群明细 服务层实现
 * 
 * @author ruoyi
 * @date 2018-11-06
 */
@Service
public class GroupDetailServiceImpl implements IGroupDetailService
{
	@Autowired
	private GroupDetailMapper groupDetailMapper;

	/**
     * 查询群明细信息
     * 
     * @param id 群明细ID
     * @return 群明细信息
     */
    @Override
	public GroupDetail selectGroupDetailById(Long id)
	{
	    return groupDetailMapper.selectGroupDetailById(id);
	}
	
	/**
     * 查询群明细列表
     * 
     * @param groupDetail 群明细信息
     * @return 群明细集合
     */
	@Override
	public List<GroupDetail> selectGroupDetailList(GroupDetail groupDetail)
	{
	    return groupDetailMapper.selectGroupDetailList(groupDetail);
	}
	
    /**
     * 新增群明细
     * 
     * @param groupDetail 群明细信息
     * @return 结果
     */
	@Override
	public int insertGroupDetail(GroupDetail groupDetail)
	{
	    return groupDetailMapper.insertGroupDetail(groupDetail);
	}
	
	/**
     * 修改群明细
     * 
     * @param groupDetail 群明细信息
     * @return 结果
     */
	@Override
	public int updateGroupDetail(GroupDetail groupDetail)
	{
	    return groupDetailMapper.updateGroupDetail(groupDetail);
	}

	/**
     * 删除群明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGroupDetailByIds(String ids)
	{
		return groupDetailMapper.deleteGroupDetailByIds(Convert.toStrArray(ids));
	}
	
}
